package com.demo.core.model;


import com.demo.core.model.support.SimpleBaseModel;

/**
 * 会员角色表模型
 * 
 * @author ryuu.kk
 */
public class MemberRole extends SimpleBaseModel implements java.io.Serializable {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = -3469996726326561336L;
	
	/**
	 * 会员ID
	 */
	private Long memberId;
	/**
	 * 角色ID
	 */
	private Long roleId;
	/**
	 * 是否可用
	 */
	private Boolean enabled;
	/**
	 * 角色类型
	 */
	private String status;
	/**
	 * 优先级
	 */
	private Integer priority;
	/**
	 * 会员模型
	 */
	private Member member;
	/**
	 * 角色模型
	 * 从MemberRole模型角度出发
	 * 一个MemberRole包含一个Member和一个Role
	 */
	private Role role;
	
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Integer getPriority() {
		return priority;
	}
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
}
